#include "mainwindow.h"
#include "ui_mainwindow.h"

MainWindow::MainWindow(QWidget *parent) :
    QMainWindow(parent),
    ui(new Ui::MainWindow)
{
    ui->setupUi(this);
}

MainWindow::~MainWindow()
{
    delete ui;
}

void MainWindow::setUserInfo(QString u, QString p)
{
    this->user = u;
    this->pass = p;


    //显示
    ui->userLb->setText(user);
    ui->passLb->setText(pass);
}
